
s = 'hellowxyz'

def generate_password(s):
    for i in s:
        index = ord(i)
        if i in "xyz":
            print(chr(index-23))
        else:
            print(chr(index+3))

generate_password(s)